// 普通加载路由
// import Home from './Home.vue'
// 懒加载路由
const Home = () => import('./Home.vue')
export default {
  path: '/home',

  name: 'Home',
  component: Home,
  children: [
    {
      path: '/',
      redirect: '/shangHu',
    },
    {
      path: '/shangHu',
      name: 'ShangHu',
      component: () => import('../shangHu/ShangHu.vue'),
    },
    {
      path: '/shangHuDetail',
      name: 'ShangHuDetail',
      component: () => import('../shangHu/ShangHuDetail.vue'),
    },
    {
      path: '/keHu',
      name: 'keHu',
      component: () => import('../keHu/KeHu.vue'),
    },
    {
      path: '/ziXun',
      name: 'ziXun',
      component: () => import('../ziXun/ziXun.vue'),
    },
    {
      path: '/coupon',
      name: 'coupon',
      component: () => import('../coupon/coupon.vue'),
    },
    {
      path: '/couponDetail',
      name: 'couponDetail',
      component: () => import('../coupon/CouponDetail.vue'),
    },
    {
      path: '/product',
      name: 'product',
      component: () => import('../product/productList.vue'),
    },
    {
      path: '/productDetail',
      name: 'productDetail',
      component: () => import('../product/ProductDetail.vue'),
    },
    {
      path: '/productEdit',
      name: 'ProductEdit',
      component: () => import('../product/productEdit.vue'),
    },
    {
      path: '/yanGan',
      name: 'yanGan',
      component: () => import('../yanGan/yanGanGoodsList.vue'),
    },
    {
      path: '/yanDan',
      name: 'yanDan',
      component: () => import('../yanDan/yanDanGoodsList.vue'),
    },
    {
      path: '/yanDanGoodsEdit',
      name: 'yanDanGoodsEdit',
      component: () => import('../yanDan/yanDanGoodsEdit.vue'),
    },
    {
      path: '/yanGanGoodsEdit',
      name: 'YanGanGoodsEdit',
      component: () => import('../yanGan/yanGanGoodsEdit.vue'),
    },
    {
      path: '/dictionary',
      name: 'Dictionary',
      component: () => import('../dictionary/dictionaryList.vue'),
    },
    {
      path: '/dictionaryEdit',
      name: 'DictionaryEdit',
      component: () => import('../dictionary/dictionaryEdit.vue'),
    }


  ]
}